package com.lsu.app.service;

import com.lsu.app.bean.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *
 * @description 针对表【comment(评论)】的数据库操作Service
 * @Date 2023-10-18 20:25:44
 * @author hjj
 */

public interface CommentService extends IService<Comment> {
    void addHeatById(Integer id,Integer amount);
    Integer getTeacherIdByCourseId(Integer courseId);
    Integer getUserIdByCourseVideoId(Integer id);
    Integer getCountByTypeAndLinkId(Integer type , Integer linkId);
    Integer CountCommentsByTeacherId(Integer teacherId);

}
